home *** CD-ROM | disk | FTP | other *** search
- package sub_arctic.anim;
-
- /**
- * This is the simplest pacing function. It doesn't change the
- * input time value at all, resulting in a linear time mapping.
- *
- * @author Ian Smith
- */
- public class linear_pacer implements pacer {
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
-
- /*
- * Do the transformation.
- * @param double f original point in time
- * @return double the resulting point in time (which is this case is the
- * same as the input time)
- */
- public double pace(double f) {
- return f;
- }
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
-
- /**
- * Construct a linear_pacer.
- */
- public linear_pacer() {
- /* nothing to do */
- }
-
- /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
- }
- /*=========================== COPYRIGHT NOTICE ===========================
-
- This file is part of the subArctic user interface toolkit.
-
- Copyright (c) 1996 Scott Hudson and Ian Smith
- All rights reserved.
-
- The subArctic system is freely available for most uses under the terms
- and conditions described in
- http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html
- and appearing in full in the lib/interactor.java source file.
-
- The current release and additional information about this software can be
- found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
-
- ========================================================================*/
-